package com.Liuxu.pojo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Student {

    //属性 -- 基本类型
    private String stuName;
    private String stuAge;
    private String stuNo;

    //组合关系 -- 对象类型
    private Teacher teacher;

    //集合类型
    private List<Object> listCourse;
    Map map = new HashMap<>();
    //其他集合类型  set map prop等，参考spring-API：core核心章节
    //1.4.2 Dependence


    public List<Object> getListCourse() {
        return listCourse;
    }

    public void setListCourse(List<Object> listCourse) {
        this.listCourse = listCourse;
    }

    //行为方法
    public void doStuding(){
        System.out.println("I am studing....");
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuAge() {
        return stuAge;
    }

    public void setStuAge(String stuAge) {
        this.stuAge = stuAge;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public Student() {
    }

    public Student(String stuName, String stuAge, String stuNo) {
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.stuNo = stuNo;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuName='" + stuName + '\'' +
                ", stuAge='" + stuAge + '\'' +
                ", stuNo='" + stuNo + '\'' +
                ", teacher=" + teacher +
                ", listCourse=" + listCourse +
                ", map=" + map +
                '}';
    }
}
